import Head from 'next/head';
import Examples from '../../../example-groups/VirtualizedExamples';

<Head>
  <title>
    {'Column Virtualization Example - Material React Table V3 Docs'}
  </title>
  <meta
    name="description"
    content="An example of a Material React Table with column virtualization enabled to achieve higher performance when rendering large data sets"
  />
  <meta
    property="og:title"
    content="Column Virtualization in Material React Table Example"
  />
  <meta
    property="og:description"
    content="Learn how to enable column virtualization features in Material React Table"
  />
</Head>

## Column Virtualization Example

Material React Table has a built-in column virtualization feature (via [`@tanstack/react-virtual`](https://tanstack.com/virtual/v3)) that allows you to render a large number of columns without major performance issues that you would normally see with a large number of DOM elements.

Try out the performance of the table below with **500 columns**! Filtering, Search, and Sorting also maintain usable performance.

Be sure to also check out the full [virtualization feature guide docs](/docs/guides/virtualization) to learn about both Row and Column Virtualization.

> NOTE: You should only enable row virtualization if you have a large number of rows or columns. Depending on the size of the table, if you are rendering fewer than a couple dozen rows at a time, you will actually just be adding extra overhead to the table renders. Virtualization only becomes necessary when you have over 50 rows or so at the same time with no pagination or dozens of columns.

<Examples isPage />

View Extra Storybook **[Examples](https://www.material-react-table.dev/?path=/story/features-virtualization--enable-row-virtualization)**
